﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// 订单信息
    /// </summary>
    public  class ms_order
    {
        /// <summary>
        /// 编号
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string order_sn { get; set; }
        /// <summary>
        /// 支付编号
        /// </summary>
        public string pay_sn { get; set; }
        /// <summary>
        /// 1.微信 2.数字人民币 3.余额 4.线下支付
        /// </summary>
        public string pay_type { get; set; }
        /// <summary>
        /// 商家ID
        /// </summary>
        public string merchant_id { get; set; }
        /// <summary>
        /// 买家ID
        /// </summary>
        public string user_id { get; set; }
        /// <summary>
        /// 买家账号
        /// </summary>
        public string user_tel { get; set; }
        /// <summary>
        /// 微信原始ID
        /// </summary>
        public string wxid { get; set; }
        /// <summary>
        /// 会员openid
        /// </summary>
        public string openid { get; set; }
        /// <summary>
        /// 赠品信息[[名称，ID,价格，商户ID，商户名称，图片，数量等] ]
        /// </summary>
        public string goods_info { get; set; }
        /// <summary>
        /// 是否拼团 1.是 2.否
        /// </summary>
        public string is_group { get; set; }
        /// <summary>
        /// 活动ID
        /// </summary>
        public string activity_id { get; set; }
        /// <summary>
        /// 成团人数
        /// </summary>
        public string group_num { get; set; }
        /// <summary>
        /// 成团过期时间，到时间就自动取消
        /// </summary>
        public string expiration_time { get; set; }
        /// <summary>
        /// 预约时间
        /// </summary>
        public string prebook { get; set; }
        /// <summary>
        /// 订单金额
        /// </summary>
        public string order_price { get; set; }
        /// <summary>
        /// 抵扣金额,消费券
        /// </summary>
        public string discount_amount { get; set; }
        /// <summary>
        /// 优惠总金额
        /// </summary>
        public string discount_price { get; set; }
        /// <summary>
        /// 订单支付金额
        /// </summary>
        public string pay_price { get; set; }
        /// <summary>
        /// 退款金额
        /// </summary>
        public string refund_price { get; set; }
        /// <summary>
        /// 消费券ID
        /// </summary>
        public string user_coupon_id { get; set; }
        /// <summary>
        /// 积分
        /// </summary>
        public string integral { get; set; }
        /// <summary>
        /// 是否发放积分 1是 2否
        /// </summary>
        public string integral_grant { get; set; }
        /// <summary>
        /// 核销code
        /// </summary>
        public string codes { get; set; }
        /// <summary>
        /// 收货人姓名
        /// </summary>
        public string consignee_name { get; set; }
        /// <summary>
        /// 收货人电话
        /// </summary>
        public string consignee_tel { get; set; }
        /// <summary>
        /// 收货人地址
        /// </summary>
        public string consignee_address { get; set; }
        /// <summary>
        /// 快递公司ID
        /// </summary>
        public string express_id { get; set; }
        /// <summary>
        /// 快递公司
        /// </summary>
        public string express_name { get; set; }
        /// <summary>
        /// 快递单号
        /// </summary>
        public string courier_number { get; set; }
        /// <summary>
        /// 0 已取消 1.待付款  2.已经支付（待成团） 3.待发货  5.待收货 6.已完成 7.退款中 8.已退款
        /// </summary>
        public string status { get; set; }
        /// <summary>
        /// 核销状态1待销2已核销
        /// </summary>
        public string codestatus { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public string add_time { get; set; }
        /// <summary>
        /// 取消时间,手动或半小时后系统自动取消
        /// </summary>
        public string pay_time { get; set; }
        /// <summary>
        /// 成团失败时间
        /// </summary>
        public string team_time { get; set; }
        /// <summary>
        /// 申请退款时间
        /// </summary>
        public string deliver_time { get; set; }
        /// <summary>
        /// 退款完成时间
        /// </summary>
        public string receipt_time { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public string over_time { get; set; }
        /// <summary>
        /// 1预订2普通订单
        /// </summary>
        public string ordertype { get; set; }
        /// <summary>
        /// 取消时间
        /// </summary>
        public string cancel_time { get; set; }
        /// <summary>
        /// 成团失败时间
        /// </summary>
        public string team_fail_time { get; set; }
        /// <summary>
        /// 申请退款时间
        /// </summary>
        public string refund_time { get; set; }
        /// <summary>
        /// 退款完成时间
        /// </summary>
        public string refund_complete_time { get; set; }
        /// <summary>
        /// 订单备注
        /// </summary>
        public string orderremark { get; set; }
        /// <summary>
        /// 餐桌号
        /// </summary>
        public string orderdisksn { get; set; }
        /// <summary>
        /// 1线上2线下
        /// </summary>
        public string is_online { get; set; }
        /// <summary>
        /// 到店或物流
        /// </summary>
        public string u_sage { get; set; }
        /// <summary>
        /// 销售员ID
        /// </summary>
        public string sales_id { get; set; }
        /// <summary>
        /// 0未读1已读
        /// </summary>
        public string onreder { get; set; }
        /// <summary>
        /// 配送开始时间
        /// </summary>
        public string delivery_time_start { get; set; }
        /// <summary>
        /// 配送结束时间
        /// </summary>
        public string delivery_time_end { get; set; }
        /// <summary>
        /// 1预订2普通订单
        /// </summary>
        public string ordtype { get; set; }
        /// <summary>
        /// 打包费
        /// </summary>
        public double packing_amount { get; set; }
        /// <summary>
        /// 配送费
        /// </summary>
        public double logistics_amount { get; set; }
        /// <summary>
        /// 券优惠
        /// </summary>
        public double coupon_amount { get; set; }
    }
}
